package com.yltrcc.blog.model.model;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/*@Document(indexName = "sys_user")   //文档*/
@Data
@Builder
public class SysUser implements Serializable {
   /* @Id //主键*/
    private String id;  //ES中id不能定义为Long
    private String username;
    private String password;
    private int level;
/*    @Field(type = FieldType.Keyword)*/
    private List<String> roles;
}